# -*- coding: utf-8 -*-
"""
@Time ： 2023/1/1 14:58
@Auth ： jiraWu
@File ：selenium无界面之phantomjs.py
@IDE ：PyCharm
@Motto:人生苦短，我学Python

"""
"""
废弃
"""

from selenium import webdriver

# from selenium.webdriver.chrome.service import Service

# path = Service("chromedriver.exe")
path = 'phantomjs.exe'
url = "https://www.baidu.com"
# 打开浏览器
browser = webdriver.PhantomJS(path)
browser.get(url=url)
